package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TVideos;
import com.ruoyi.business.vo.TVideosVo;
import com.ruoyi.business.mapper.TVideosMapper;
import com.ruoyi.business.service.ITVideosService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 视频Service业务层处理
 *
 * @author user
 * @date 2023-05-06
 */
@Service
public class TVideosServiceImpl extends ServiceImpl<TVideosMapper, TVideos> implements ITVideosService {

    @Override
    public TableDataInfo<TVideosVo> queryList(TVideosVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TVideosVo> queryAll(TVideosVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TVideosVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
